package application.Proxies
{
	import org.gof.application.BaseReadProxy;
	import VOs.ScoreVO;
	
	import org.gof.application.BaseWriteProxy;
	import org.gof.application.AppNS;
	
	public class ScoreWritePxy extends BaseWriteProxy
	{
		private var scoreVO:ScoreVO;
		
		public function ScoreWritePxy()
		{
			scoreVO = new ScoreVO();
			super(scoreVO);
		}
		
		public function set score(n:int):void
		{
			if (n >= 0)
			{
				scoreVO.score = n;
			}
			else
			{
				throw new Error ("Data failed Validation");
			}
			subscribersOutdated = true;
			
		}
		
		public function get score():int
		{
			return scoreVO.score;
		}
	}
}